/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2025-02-09 17:07:44
 * @LastEditTime: 2025-02-17 22:25:40
 * @FilePath: /monitor_belt/src/api/plc/index.ts
 */
import { http } from "@/utils/request";
import { TQuery, TResponse } from "../index.type";

// 查询plc信息
export const remotePlcInfo = (params:TQuery) => {
    return http.get<TResponse>(`/api/plc`,{params});
}
// 开启plc通信
export const startPlc = (data:TQuery) => {
    return http.post<TResponse>(`/api/plc/start`,data);
}
//PLC消息
export const remotePLCParam = ()=>{
    return http.get(`/web/plc/param`)
}